<template>
    <div>
        <router-view></router-view>
        <div class="profile">
            <div class="head">
                <img src="../../assets/image/user.png" alt="user">
                <span>个人简介</span>
                <img @click="edit" src="../../assets/image/edit.png" alt="edit">
            </div>
            <div class="user">
                <img src="../../assets/image/user_img.png" alt="user">
                <div class="name">马天夏 <img src="../../assets/image/boy.png" alt="boy"></div>
                <div class="user-name">Lenone(用户名)</div>
                <div class="company">墨点狗智能科技有限公司 / 产品经理</div>
            </div>
            <div class="content">
                <div class="content-block">
                    <p class="content-title">项目</p>
                    <p class="content-content">碧桂园森林城市施工项目</p>
                </div>
                <div class="content-block">
                    <p class="content-title">手机号码</p>
                    <p class="content-content">13480752874</p>
                </div>
                <div class="content-block">
                    <p class="content-title">邮箱</p>
                    <p class="content-content">13480752874@163.com</p>
                </div>
                <div class="content-block">
                    <radar id="radar"></radar>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
import Radar from "@/components/charts/radar.vue";

export default {
    name: "person-center",
    components: {
        Radar
    },
    methods: {
        edit() {
            this.$router.push("/person-center/edit");
        }
    }
};
</script>

<style scoped>
.profile {
    width: 349px;
    height: 100vh;
    border-left: 1px solid #d9deea;
    position: fixed;
    right: 0;
    top: 0;
    padding: 24px;
}
.head > span {
    display: inline-block;
    vertical-align: top;
    font-size: 16px;
}
.head > img {
    width: 24px;
}
.head > img:last-of-type {
    float: right;
}
.user {
    text-align: center;
}
.user > img {
    width: 120px;
    margin: 16px auto 16px;
}
.user > .name {
    font-style: 20px;
    font-weight: 600;
    height: 28px;
}
.user > .name > img {
    width: 16px;
    vertical-align: bottom;
    margin-left: 8px;
}
.user-name {
    height: 20px;
    font-style: 14px;
    color: #6f83a1;
}
.company {
    margin-top: 6px;
    height: 20px;
    font-size: 14px;
    color: #131d2d;
}
.content {
    background: #f5f7f9;
    border-radius: 2px;
    margin-top: 14px;
}
.content > .content-block {
    font-weight: 600;
    padding-top: 14px;
    padding-left: 32px;
}
.content .content-title {
    height: 17px;
    font-size: 12px;
    color: #6f83a1;
}
.content .content-content {
    font-size: 16px;
    color: #131d2d;
    font-weight: 600;
    height: 22px;
}
#radar {
    height: 200px;
    width: 100%;
}
</style>
